package com.dimension.service.impl;

import com.dimension.mapper.CommentMapper;
import com.dimension.service.CommentService;
import com.dimension.utils.SessionUtil;
import com.dimension.vo.CommentUserImage;

import java.util.ArrayList;
import java.util.List;

public class CommentServiceImpl implements CommentService {
    private CommentMapper commentMapper = SessionUtil.getMapper(CommentMapper.class);

    @Override
    public List<CommentUserImage> getCommentTableWithCondition(String nickname, Integer pageNum, Integer pageSize) {
        List<CommentUserImage> commentUserImageList = commentMapper.getCommentTableWithCondition(nickname,pageNum,pageSize);

        return commentUserImageList;
    }

    @Override
    public Integer gettotal(String nickname) {
        Integer total = commentMapper.gettotal(nickname);
        return total;
    }
}
